package cn.qyd;

/**
 * @author 邱运铎
 * @date 2024-03-04 9:21
 */
public class Demo {
    public static void main(String[] args) {
        int a = 2;
        System.out.println(1 << a);
        Integer i = 192;
        String name = new String("邱运铎");
        modifyName(name);
        System.out.println(name);
        System.out.println(System.identityHashCode(name));
        System.out.println(name.hashCode());
        System.out.println("-------------------------------");
        System.out.println(i);
        System.out.println(System.identityHashCode(i));
        System.out.println(i.hashCode());

        System.out.println(Integer.toBinaryString(80));
        System.out.println(String.class.getName());
    }


    public static void modifyName(String name) {
        name = "张三";
        System.out.println(System.identityHashCode(name));
    }
}
